<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page import="java.util.List" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="java.util.Collection" %>
<%@ page import="grupo2.bj.*" %>

<html>
  <head>
    <title>Black Jack: Guardar Juego</title>
  </head>
  
  <body bgcolor="white">
  <!--<body background="C:\Documents and Settings\gonzalo\Escritorio\lost.jpg">-->
      
  <!-- Page Heading -->
 <center><table border="3" cellpadding="5" cellspacing="0" width="800">
      <tr bgcolor="#CCCCFF" align="center" valign="middle" height="8">
          
          <td><h2>Black Jack: Guardar Juego</h2></td>
      </tr>
  </table></center>
  
    <form action="mostrarErrores">
		<% 	
	  		Collection<String> errorMsgs = (Collection<String>)request.getAttribute("errorMsgs"); 
	  	   
	     if (errorMsgs!=null && !errorMsgs.isEmpty()){	     		
	    	   out.println("<hr><font color='red'><center><b><u>ERRORES</u>:</b></center>");
	           Iterator items = errorMsgs.iterator();
	           while ( items.hasNext() ) {
	                String message = (String) items.next();
	                out.println("  <li><i>" + message + "</i></li>");
	           }
	           out.println("<hr><br>");
	           errorMsgs.removeAll(errorMsgs);
	           out.println("<font color='black'>");
	     }
	   %>
	</form>
  
  <center><h3>Ingrese el usuario con el que desea guardar la partida de Black Jack.</h3></center>
  
 <center><form action="guardarJuego" method="post">
		Usuario:  <input type="text" name="usuario"/>
		<input type="submit" name="guardarSubmit" value="Guardar" />
		<br/><br/>	
 </form></center>	
 <br>
 
 <center><form action="proximoJugador" method="post">
					
	<input type="submit" name="showApSubmit" value="Volver al Juego" />
	</form></center>
	    
          
    </body>
 </html>